package com.diy.sigmund.diycommon.designpatterns.strategy.duck;

import com.diy.sigmund.diycommon.designpatterns.strategy.duck.flybehavior.FlyNoWay;
import com.diy.sigmund.diycommon.designpatterns.strategy.duck.quackbehavior.MuteQuack;

/**
 * 诱饵鸭
 *
 * @author ylm-sigmund
 * @since 2022/1/13 15:46
 */
public class DecoyDuck extends Duck {

    public DecoyDuck() {
        flyBehavior = new FlyNoWay();
        quackBehavior = new MuteQuack();
    }

    @Override
    protected void display() {
        System.out.println("DecoyDuck 诱饵鸭");
    }
}
